package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.QuanMaoCard;
import com.ecoolex.discount.sales.entity.QuanMaoCardExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface QuanMaoCardMapper {
    long countByExample(QuanMaoCardExample example);

    int deleteByExample(QuanMaoCardExample example);

    int deleteByPrimaryKey(String cardNo);

    int insert(QuanMaoCard record);

    int insertSelective(@Param("record") QuanMaoCard record, @Param("selective") QuanMaoCard.Column ... selective);

    QuanMaoCard selectOneByExample(QuanMaoCardExample example);

    List<QuanMaoCard> selectByExample(QuanMaoCardExample example);

    QuanMaoCard selectByPrimaryKey(String cardNo);

    QuanMaoCard selectByPrimaryKeyWithLogicalDelete(@Param("cardNo") String cardNo, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") QuanMaoCard record, @Param("example") QuanMaoCardExample example, @Param("selective") QuanMaoCard.Column ... selective);

    int updateByExample(@Param("record") QuanMaoCard record, @Param("example") QuanMaoCardExample example);

    int updateByPrimaryKeySelective(@Param("record") QuanMaoCard record, @Param("selective") QuanMaoCard.Column ... selective);

    int updateByPrimaryKey(QuanMaoCard record);

    int batchInsert(@Param("list") List<QuanMaoCard> list);

    int batchInsertSelective(@Param("list") List<QuanMaoCard> list, @Param("selective") QuanMaoCard.Column ... selective);

    int logicalDeleteByExample(@Param("example") QuanMaoCardExample example);

    int logicalDeleteByPrimaryKey(String cardNo);
}